package com.example.timeskilltest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.timeskilltest.service.TimeSkillService;

@RequestMapping("/timeskill")
@RestController
public class TimeSkillController {

    @Autowired
    private TimeSkillService timeSkillService;

    @RequestMapping("/init")
    public String init() {
        timeSkillService.init();
        return "已初始化";
    }

    @RequestMapping("/go")
    public String go() {
        String result = timeSkillService.go();
        return result;
    }

}
